import React from 'react';
import {Router,Route} from 'dva/router';
import Menu from './components/Menu';
import HomePage from './routes/HomePage';
import IncomePage from './routes/IncomePage';
import OutlayPage from './routes/OutlayPage';
import BankPage from './routes/BankPage';
import CashPage from './routes/CashPage';

export default function({history})
{
  return (
    <Router history={history}>
      <Route path="/" component={HomePage} />
      <Route path="/home" component={HomePage} />
      <Route path="/income" component={IncomePage} />
      <Route path="/outlay" component={OutlayPage} />
      <Route path="/bank" component={BankPage} />
      <Route path="/cash" component={CashPage} />
    </Router>
  );
}